default_target: all

all: run

run:
	riscv32-unknown-elf-gcc -m32 -O0 -g -march=IM hello.c app.S -nostdlib -Tlink.ld -o app.elf
	riscv32-unknown-elf-objdump -S -d app.elf > app.asm
	riscv32-unknown-elf-objcopy	-F verilog app.elf app.mem

